@extends('/layout/index')

@section('title')
<title>后台首页</title>
@endsection

@section('main')
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>用户添加</span>
    </div>

    @if (count($errors) > 0)
	      <div class="mws-form-message error">
	        <ul>
	            @foreach ($errors->all() as $error)
	                <li>{{ $error }}</li>
	            @endforeach
	        </ul>
	    </div>
	@endif

    <div class="mws-panel-body no-padding">
		<form action="/Admin/user/insert" method="post"  enctype="multipart/form-data" class="mws-form">
			<div class="mws-form-inline">
				<div class="mws-form-row">
					<label class="mws-form-label">用户名</label>
					<div class="mws-form-item">
						<input type="text" class="small" name="username">
					</div>
				</div>
				<div class="mws-form-row">
					<label class="mws-form-label">密码</label>
					<div class="mws-form-item">
						<input type="password" class="small" name="password">
					</div>
				</div>
				<div class="mws-form-row">
					<label class="mws-form-label">确认密码</label>
					<div class="mws-form-item">
						<input type="password" class="small" name="repassword"> 
					</div>
				</div>
				<div class="mws-form-row">
					<label class="mws-form-label">邮箱</label>
					<div class="mws-form-item">
						<input type="text" class="small" name="email"> 
					</div>
				</div>
				<div class="mws-form-row">
                	<label class="mws-form-label">图片</label>
                	<div class="mws-form-item">
                    	<div style="position: relative;" class="small">
                    	  <img id="img0" src="/upload/1.jpg" alt="" width="100" height="100" onclick='$("#file0").click()'>
                    	  	<div style="display:none">
	             	           <input type="file" name="picname" id="file0" multiple="multiple" />
	                   		</div>
	                    </div>
                    </div>
                </div>
      
				<div class="mws-form-row bordered">
                    <label class="mws-form-label">性别</label>
                    <div class="mws-form-item clearfix">
                        <ul class="mws-form-list inline">
                            <li><input type="radio" name="sex" value="1"> <label>男</label></li>
                            <li><input type="radio" name="sex" value="2"> <label>女</label></li>
                        </ul>
                    </div>
                </div>
			<div class="mws-button-row">
				{{ csrf_field() }}
				<input type="submit" class="btn btn-danger" value="注册">
				<input type="reset" class="btn " value="重置">
			</div>
		</form>
	</div>
</div>
@endsection

